/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.portlet.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    Thi
 * @generated
 */
public class nhanvienSoap implements Serializable {
	public static nhanvienSoap toSoapModel(nhanvien model) {
		nhanvienSoap soapModel = new nhanvienSoap();

		soapModel.setMaNhanVien(model.getMaNhanVien());
		soapModel.setTenNhanVien(model.getTenNhanVien());
		soapModel.setGioiTinh(model.getGioiTinh());
		soapModel.setNgaySinh(model.getNgaySinh());
		soapModel.setMaBoPhan(model.getMaBoPhan());
		soapModel.setMaRole(model.getMaRole());

		return soapModel;
	}

	public static nhanvienSoap[] toSoapModels(nhanvien[] models) {
		nhanvienSoap[] soapModels = new nhanvienSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static nhanvienSoap[][] toSoapModels(nhanvien[][] models) {
		nhanvienSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new nhanvienSoap[models.length][models[0].length];
		}
		else {
			soapModels = new nhanvienSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static nhanvienSoap[] toSoapModels(List<nhanvien> models) {
		List<nhanvienSoap> soapModels = new ArrayList<nhanvienSoap>(models.size());

		for (nhanvien model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new nhanvienSoap[soapModels.size()]);
	}

	public nhanvienSoap() {
	}

	public String getPrimaryKey() {
		return _maNhanVien;
	}

	public void setPrimaryKey(String pk) {
		setMaNhanVien(pk);
	}

	public String getMaNhanVien() {
		return _maNhanVien;
	}

	public void setMaNhanVien(String maNhanVien) {
		_maNhanVien = maNhanVien;
	}

	public String getTenNhanVien() {
		return _tenNhanVien;
	}

	public void setTenNhanVien(String tenNhanVien) {
		_tenNhanVien = tenNhanVien;
	}

	public String getGioiTinh() {
		return _gioiTinh;
	}

	public void setGioiTinh(String gioiTinh) {
		_gioiTinh = gioiTinh;
	}

	public Date getNgaySinh() {
		return _ngaySinh;
	}

	public void setNgaySinh(Date ngaySinh) {
		_ngaySinh = ngaySinh;
	}

	public String getMaBoPhan() {
		return _maBoPhan;
	}

	public void setMaBoPhan(String maBoPhan) {
		_maBoPhan = maBoPhan;
	}

	public String getMaRole() {
		return _maRole;
	}

	public void setMaRole(String maRole) {
		_maRole = maRole;
	}

	private String _maNhanVien;
	private String _tenNhanVien;
	private String _gioiTinh;
	private Date _ngaySinh;
	private String _maBoPhan;
	private String _maRole;
}